package com.homeinns.lyx.trainserver.excepion;

import com.homeinns.lyx.trainserver.enums.ResultEnum;

public class ProductNotFoundException extends RuntimeException {

    private Integer code;

    public ProductNotFoundException(Integer code,String message){
        super(message);
        this.code=code;
    }

    public ProductNotFoundException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

}
